package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mx.dao.NoticeDao;
import mx.entity.Notice;
import mx.service.NoticeService;
@Service
public class NoticeServiceImpl implements NoticeService {
	@Resource
	private NoticeDao noticeDao;

	public List<Notice> list(Map<String, Object> map) {

		return noticeDao.list(map);
	}

	public Long getTotal(Map<String, Object> map) {

		return noticeDao.getTotal(map);
	}

	public Integer update(Notice notice) {

		return noticeDao.update(notice);
	}

	public Notice find(Notice notice) {

		return noticeDao.find(notice);
	}

	public Integer delete(Integer id) {

		return noticeDao.delete(id);
	}

	public Integer add(Notice notice) {

		return noticeDao.add(notice);
	}

}
